/*
 *FifoPolicy.cpp
 *
 *Implementacao da Politica de Fila
 */

#include "storage/FifoPolicy.h"

namespace dtn{
	namespace storage{
		FifoPolicy::FifoPolicy(){

		}

		FifoPolicy::~FifoPolicy(){

		}

		dtn::data::BundleID& FifoPolicy::getProximoRemover(){
			dtn::data::BundleID& bundleID = this->fila.front();
			this->fila.pop();
			return bundleID;
		}

		void FifoPolicy::pegarInformacoesBundle(const dtn::data::Bundle& bundle){
			this->fila.push(dtn::data::BundleID(bundle));
		}
	}
}
